/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_auditchannels")
//@NamedQueries({@NamedQuery(name = "TAuditchannels.findAll", query = "SELECT t FROM TAuditchannels t"), @NamedQuery(name = "TAuditchannels.findById", query = "SELECT t FROM TAuditchannels t WHERE t.id = :id"), @NamedQuery(name = "TAuditchannels.findByChannelId", query = "SELECT t FROM TAuditchannels t WHERE t.channelId = :channelId"), @NamedQuery(name = "TAuditchannels.findByLasetserviceCode", query = "SELECT t FROM TAuditchannels t WHERE t.lasetserviceCode = :lasetserviceCode"), @NamedQuery(name = "TAuditchannels.findByServiceCode", query = "SELECT t FROM TAuditchannels t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TAuditchannels.findByAudituser", query = "SELECT t FROM TAuditchannels t WHERE t.audituser = :audituser")})
public class TAuditchannels implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "channel_id")
    private String channelId;
    @Column(name = "lasetservice_code")
    private String lasetserviceCode;
    @Column(name = "service_code")
    private String serviceCode;
    @Column(name = "audituser")
    private String audituser;

    public TAuditchannels() {
    }

    public TAuditchannels(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getLasetserviceCode() {
        return lasetserviceCode;
    }

    public void setLasetserviceCode(String lasetserviceCode) {
        this.lasetserviceCode = lasetserviceCode;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getAudituser() {
        return audituser;
    }

    public void setAudituser(String audituser) {
        this.audituser = audituser;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TAuditchannels)) {
            return false;
        }
        TAuditchannels other = (TAuditchannels) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TAuditchannels[id=" + id + "]";
    }

}
